package com.epam.submenu;

import java.util.ArrayList;
import java.util.List;




import com.epam.menu.Menu;
import com.epam.menu.MenuItem;
import com.epam.submenu.submenu2.*;

public class Stones extends MenuItem {
	private final Menu subMenu;
	
	public Stones() {
		super("Demi precious","2");
		List<MenuItem> items = new ArrayList<MenuItem>();
		items.add(new Rank1());
		items.add(new Rank2());
		items.add(new GoBack2());
		subMenu = new Menu(items);
	}

	@Override
	public boolean execute() {
		System.out.println("Demi precious comand");
		subMenu.run();
		return true;
	}

}
